Fix platform bug