Update commands.js

Bug fix.