ncurses: double patch fixed