Correct work with small windows