Fixed player position on 1.7 and fixed error memory leak