     for k,v of obj
 
       # Get scope, convert if necessary
+      sublime.scope = k.substring(1)
       for subl,atom of @scopes
         if k is atom
           sublime.scope = subl
-        else
-          sublime.scope = k.substring(1)
+          
 
       for i, j of v
         unless typeof j.prefix is 'undefined'


# Dependencies
CSON = require 'cson'

module.exports = Atomizr =
  atom: atom

    for subl,atom of @scopes
      if obj.scope is subl
        scope = atom
        break
      else
        scope = "." + obj.scope

