fix memory print