Fixed memory map generator code