fix regtest issues