fix to migration