fix bug in window_up