Fix collision with screen border