Fix error filesize read upgrade