fixed cmd_unbind crash when unbinding a temporary bound function