fix bugs in map view controller