Fix screen tearing