almost fixed map display bug