Fixed snippet length offest bug