Fixed error with Platform.js