fixed increaseAttemptNr to increase max attempt for secondary datasets