fix duplicating when adding teacher