 
 	_handleProgress: =>
 		@emit("progress", @progress)
-		@progressIndicator.setProgress(@progress, false)
+		@progressIndicator?.setProgress(@progress, false)
 		@_handleLoaded() if @isReady
 
 	_handleLoaded: ->


			@progressIndicator.railsColor = Color.grey(0, 0.1)
			@progressIndicator.progressColor = "rgb(75,169,248)"

			@brand = new Layer
				width: 96


		@timeout = 30

		@start()

	setupContext: ->

		parentContext = Framer.Device?.context
		parentContext ?= Framer.CurrentContext

		@context = new Context({parent: parentContext, name: "Preloader"})

		@context.run =>

