Fix bug with directory requests.