fix platform selection and device selection