Fix platform generation