Fixed error in train script.