fix bug,now can run in all platforms