fix error in platform selection