Fixed double groups import.

@kylef I guess this fixes the "double groups" error. I've tried with the example your send me by email earlier today, and it seems to be working.