Fixed many bugs, now mimd-map functioning properly
fixed re-ordering issue