fix activerecord relation bug in group solver
Merge pull request #124 from dontmitch/fix_error_with_group_solver

fix activerecord relation bug in group solver