bugfix in regression.py