Fixed a problem when plotting MAP