Correction of errors in trainMultiMLP