fixed crash when all sources were unsubscribed