fix bug in activity loop get subject