fix path with query