Fixed queries that had spaces in the path