Fix bug in io.js