Checked and moved refresh() call. Used nodelay(stdscr, FALSE) during init.
resize is better