Fixed wrong instantiation of groups