fix clearCommands to also remove regex listeners