Fixed TypeError in mapping-generator