Fix sync sample overflow