fixed bug with first indep variable