Fix prepare for fat_memory