fixed issue: query for getting the rate gets called even if the items array is empty. removed Debug dumps from testing