Fix screen bounds check