avoid using class_id() in phi reg-rs. Fix bugs of merging with bigartm/master