fixed bug on delete subjects.