fixed enabling and disabling of commands.