Fix data frame entries being factors instead of numbers