Fixed the return instance when inserting a group