fixed bug with location_pk