Correct error in learning path padding -ref #6975