Fix bug on migrate down using cli conenction.