Fix commands.js bug