the CHECK() macro resets result, so an error code from an earlier view could be erased if the last view loaded had no errors.