Fixed issue when inserting group rows