bug fixes for group import