save sets pk correctly