[MLP] Fix cost error()