fix the bug of the map navigation