Fix loadFile to return file length once again.