fixed add_global for commands