Only set offset when it's a positive number.