Fix inifite loop cyclic nested exceptions