NoMethodError for empty subjectid fixed