Fixed double groups import.

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