revert file.length changes