Aren't you using @amrutac's scope function in the pubsub?