fix name lookup of flavors in migration