Fixing some bugs in dynamic platform map generator impl.