fixed horrifying numeric to factor error