Fixed bugs about hiding in curses.c