Fixed a bug where memory was not being included