Fixed some bugs in subscriber.go