A battle that you win cancels any other bad action of yours. In the same way, by losing one, all the good things worked by you before become vain.