Fixed small bug in map tree creation.