Fix pk comparison