fix_memory