Fix position bug
Optimize platform commands