fix return_result bug