fixup an implementation of the toggleable diff