fold_select return bug fixed