     # console.log @lv_selected
     log_con_color = lv_color[log_lv]
     log_con_color ?= lv_color.def
-    if lv_list.indexOf(log_lv) >0
-      # console.log log_lv
-      lv_map_val = lv_unmap[@lv_selected]
-      if lv_map_val.indexOf(log_lv) >0
+    if lv_list.indexOf(log_lv) >=0
+      # lv_map_val = lv_unmap[@lv_selected]
+      # console.log log_lv, @lv_map_val, @lv_selected
+      if @lv_map_val?.indexOf(log_lv) >=0
         # if @lv_selected is lv_val_l
         @update_log(client_id, log, show_color, log_con_color)
         @update_gutter(show_color, start_color_ln, client_id)


  add_clients: (client_id)->
    @client_select.append @new_option(client_id, client_id)

  new_option: (name, value=name)->
    $$ ->

    # $('#emp_log_view').stop().animate({scrollTop:@log_detail.context.scrollHeight}, 1000)

  store_log: (client_id, log, log_lv=emp.EMP_DEF_LOG_TYPE) ->
    # console.log client_id, log, log_lv
    if !@log_map[client_id]
      tmp_color = @get_color()
      @log_map[client_id] = new emp_log(client_id, tmp_color)
