fix inserting zero rows