fix SelfReference-related error