fixed index problem with file size