fix player position when resize