 			layerInfo.superLayer = superLayer
 
 		# We can create the layer here
-		layer = new LayerClass layerInfo
+		layer = new LayerClass(layerInfo)
 		layer.name = layerInfo.name
 
 		# Record the imported path for layers (for the inferencer)

			backgroundColor: null
			visible: info.visible ? true

		_.extend layerInfo, @extraLayerProperties

		# Most layers will have an image, add that here
		if info.image
			layerInfo.frame = info.image.frame
			layerInfo.image = Utils.pathJoin @path, info.image.path
			
		# If there is a mask on this layer group, take its frame
		if info.maskFrame

		
		# Pass one. Create all layers build the hierarchy
		layerInfo.map (layerItemInfo) =>
			@_createLayer(layerItemInfo)

		# Pass two. Adjust position on screen for all layers
		# based on the hierarchy.
		for layer in @_createdLayers
			@_correctLayer(layer)

		# Pass three, correct artboard positions, and reset top left
		# to the minimum x, y of all artboards
		@_correctArtboards(@_createdLayers)

		# Pass three, insert the layers into the dom
		# (they were not inserted yet because of the shadow keyword)
