 				return
 
 		if not @_readonly
-			@__input0.value = @correctValueForInput(shadow_v)
-			@__input0.setSelectionRange(@__shadow0.selectionStart, @__shadow0.selectionEnd)
+			@__input.value = @correctValueForInput(shadow_v)
+			@__input.setSelectionRange(@__shadow.selectionStart, @__shadow.selectionEnd)
 
 		# CUI.debug "shadow before init cursor", @cursor?.start.idx, "-", @cursor?.end.idx
 		@initCursor(ev)


	getInputBlocks: ->
		if @_getInputBlocks
			blocks = @_getInputBlocks(@__input0.value)
		else if @_getCursorBlocks
			blocks = @_getCursorBlocks(@__input0.value)
		else
			blocks = @__getInputBlocks(@__input0.value)
		@checkBlocks(blocks)

	__getInputBlocks: (v) ->
		blocks = []
		v =  @__input0.value
		re = /[0-9]+/g
		blocks = []
		while (match = re.exec(v)) != null

			if DOM.height(@__input) != previous_height
				changed = true

			# CUI.error "__setContentSize", @_textarea, @__input.value, @__contentSize.value, h
		else
			w = @__contentSize.scrollWidth
			if @__contentSize.value.length == 0
				# help IE out here, IE measures one " "
				w = 1
			else
