fix duplicate subjects