Fix fenced code extn modifying data beyond slice