fixed bug in loadFile() request method