fixed migration, accidentally broken in global s/r