fixed bug on `on_cmd_account` hook