fix bug parameter shape in function fitting() are not changed