fixed platform.js