Fixed crash on scaling window to zero height