Fixed regression when placing windows.