Fix bugs with selecting map from table view