fix bug in lookup for places with spaces