Fixed regtest

(this is required with previous commit)