fix clone row in the correct position.

fix that the clone of the row will append to the table, now the the row will cloned in the correct position