 					skuDimensionValue = sku.dimensions[dimension]
 					# If the dimension value matches, enable the button
 					if skuDimensionValue is value
-						selectors.itemDimensionValueInput(dimension, value, $template).removeAttr('disabled')
+						selectors.itemDimensionValueInput(dimension, value, context).removeAttr('disabled')
 					# If the dimension value matches and this sku is available, show as selectable
 					if skuDimensionValue is value and sku.available
-						selectors.itemDimensionValueInput(dimension, value, $template).removeClass('item_unavaliable')
-						selectors.itemDimensionValueLabel(dimension, value, $template).removeClass('disabled item_unavaliable')
+						selectors.itemDimensionValueInput(dimension, value, context).removeClass('item_unavaliable')
+						selectors.itemDimensionValueLabel(dimension, value, context).removeClass('disabled item_unavaliable')
 
 
 $.fn.skuSelector = (productId, name, dimensions, skus, options = {}) ->

	available = skuSelectorObj.findAvailableSkus()
	if available.length is 0
		# showWarningUnavailable
		options.selectors.warnUnavailable($template).find('input#notifymeSkuId').val(skus[0].sku)
		options.selectors.warnUnavailable($template).show()
		$('.skuselector-buy-btn', $template).hide()
	else if available.length is 1
		updatePrice(available[0], options, this)


			@selectedDimensionsMap[key] = undefined if foundCurrent
			foundCurrent = true if key is dimensionName

	# Renders the DOM elements of the Sku Selector, given the context
	renderSkuSelector: (context) =>
		dimensionIndex = 0

