Fix logic in screen size check.