fixing query parameters in fakeDir