fixes in purchase ref rate fetching