correct bug in platform checks