Fixed a platform check