fixed array/string error in studygroups_controller