Bugfix with memory printing