Fix a bug in FeatureMap class

Also, update the road generation function.