Fix error self-reference error