David fixes a defect in role and another in inspector