fix fetching pk