Finally correct wrong TruncatedLength

misplaced statement made TruncatedLength = Pos+Length