fix deadlock issue from subjectmanager