fix bugs under platform