fix a bug in regression test