Bug fix migrations environment