onehot.transform had bug with dealing with var4; I believe I fixed it, but I haven't fully checked yet