Fixed a bug when removing subscribers