Was it marked in the mail as completed? Or just during the night and after you failed it switched back to being incomplete? If the former, then it's clearly a bug, the latter is what I'd say the expected behaviour