Fixed unexpected behavior in map view controller