Fix crash on primal reversion, hopefully