- fixed wrong setting of primary key