Fix platform check