#1851: fixed a bug which had the effect that the problem instance was not set correctly for each variant