Fix minor issues with linsert