Fixed an error when clicking on the Show Map button.