Fixed a bug in subscriber event