       if Blog.settings.blogShowTemplate
         @template = Blog.settings.blogShowTemplate
 
-      Session.set 'postSlug', @params.slug
-
       # Set up our own 'waitOn' here since IR does not atually wait on 'waitOn'
       # (see https://github.com/EventedMind/iron-router/issues/265).
+      Session.set 'postSlug', @params.slug
       @subscribe('singlePost', @params.slug).wait()
 
     waitOn: ->

      if Blog.settings.adminRole and not Roles.userIsInRole(Meteor.user(), Blog.settings.adminRole)
        return @redirect('/blog')

      Session.set 'postSlug', @params.slug
      @subscribe('singlePost', @params.slug).wait()

    path: '/admin/blog/edit/:slug'

    waitOn: ->
      Meteor.subscribe 'authors'

    data: ->
