Fix recursive bug.