fix platform bug