fixed locking issues for screen rotates