fixed a platform bug