   open: (cid, updateHistory) ->
     addClass @overlay, 'choco-show'
     addClass document.body, 'choco-body'
-    getEnv() if not env.shift < 1
+    getEnv() if env.shift is 0
     @updateDimensions()
     @select cid, updateHistory
     @



  select: (item, updateHistory = true) ->
    if typeof item is 'number'
      item = @storage.get item



    data.slide = beforeend(chocolate.slider, mustache templates['slide'], data)[0]
    data.thumbnail = beforeend(chocolate.thumbnails, mustache templates['thumbnails-item'], data)[0]


    addHandler data.thumbnail, 'click', -> chocolate.select data


    if image

