Fixes incorrect set coercion.

The `to_i` was causing group flippers to fail as their name (a string) would incorrectly get coerced into a integer (usually 0).