fixed defect in mod command