Fix bug in maps.