fix composite primary key processing