Prevent negative offset.