fix to Robot.js