fixed cmd_global_unregister.c: invalid return