this line is the reason why the $agreed value keeps got reset to 0, even the request is set from 'upc_agreement' page.