fixed platform bug