fixed bug in regression with interactions