Fix broken table insert