fix value-error from null-pk string