Set to element before end