fix char bug in pointer lock