fix command box bug