     copy.addClass('hidden')
     copy.find('input').attr('value','')
     copy.find('input').val('')
-    $(evt.target).closest(".answer").before(copy)
+    delete_btn.closest(".answer").before(copy)
 
   get_answer_which_is_not_hidden_count:()->
     @$elm.find('.question_fill_answer .answer:not(.hidden)').length
 
   remove_answer_which_is_not_hidden:()->
     @$elm.find('.question_fill_answer .answer.hidden').remove()
-
-  get_answer_which_is_not_hidden_count:()->
-    @$elm.find('.question_fill_answer .answer').length
 
   bind_events: ->
     @$elm.on 'click', '.append', =>

      $(evt.target).closest('.question_mapping_answer .option-key-field .item').remove();

    @$elm.on 'click', '.append', (evt)=>
      hidden_item_count = @get_hidden_item_count
      if hidden_item_count == 1
        @hidden_item_remove_class
      else
        last_mapping_input_name = @get_last_mapping_input().attr('name')
        last_mapping_input_index = @regular(@num_filter,last_mapping_input_name)

class FillMacker
  constructor: (@$elm)->
    @bind_events()

  make_new_blank_dom: ()->
    blank = @$elm.find('.answer:last').clone();
    blank.removeClass("hidden")
