Fixed a bug in displayMap()