Attempts LMS - Error in the second attempt

I have a quiz that has two attempts and, if you’re negative on the second attempt, it saves the second attempt
in the variable I have this
if not, why is that?