fix commit "bug fix, `#279 Problem when using a function to set initial value""