refix subject id compare bug