fixed bugs of data preprocessing class