fixed wrong window height values