fix import and export groups bug