fixed init of window_size