Fixed the modifymodel management command to actually modify model.