Fix inside-outside parameter training