fixing features and onehot encoding