ulrik frederik gyldenløve ultimately arranged for him to make amends and in 1691 he was appointed as danish minister in stockholm. he assisted jens juel in connection with the conclusion of the armed neutrality pact in 1693.