fixed bug with OffsetFromStart  ()