Nintendo 3DS Top Screen Won't Go to Sleep

The 3DS screens work fine, except when I close it so it goes to sleep, the top screen stays on. Instead of turning off it just has a black screen and that drains the battery quickly. It also needs a battery replacement, but I want to fix that screen issue before I fix it so it doesn’t mess up the new battery. Is there some way to fix that screen issue without a full replacement?