Fix primary key access on find one
Signed-off-by: Erik Wiesenthal <erikwiesenthal@gmail.com>