Correct typo and add missing PubSub dependency