Corrects a training-test split problem