fixed bug with root dir request