call to `updatePlaceList` could be outside the else if.
You just need to do the `uri.replace` in the else.