fix for changing window height