fix getFileRange problem