fix memory working with player