Fixed bugs in file requests, now works fine