Fix bug in add_subjects method.