         # Only create it if doesn't exist.
         unless @$popover?
             renderData = @getRenderData()
-            defaultScreen = @getScreen 'default'
+            @screen = @getScreen 'default'
             popoverWrapper = @template
-                title: defaultScreen.title(renderData)
-                content: defaultScreen.content(renderData)
+                title: @screen.title(renderData)
+                content: @screen.content(renderData)
 
             @$popover = $ popoverWrapper
             @titleElement = @$popover.find '.popover-title'

            error = 'Popover must be rendered before switching its screen.'
            throw new Error(error)

        # Get the screen data.
        screen = @getScreen screenID

        # Change the DOM with the new screen.
        renderData = @getRenderData()
        @titleElement.html screen.title(renderData)
        @contentElement.html screen.content(renderData)

        # Change current screen information
        @screenElement.data 'screen', screenID

        # Execute the screen's callback if it has been defined.
        screen.afterRender?.call @


    render: ->

        @afterRender()

        # Execute the default screen's callback if it has been defined.
        @screen.afterRender.call @

        # Compute and et popover's position.
        @positionPopover()
