Fixed some bugs. MemoryManager file became corrupted for some reason...