fix some bugs in change recipe