fix rotation with viewport