fix the check of the platform