Fixed bug in mapviewer