Bugfix: Agent could get blocked when some behaviors were unblocked -- added check