Fix management command error