fix command_tricks bug