fix pk validation