fixed bug with detail view in the map