fixed wrong variable regression