fix bug in auto-subscribe