fix genmap