Fixed references to cursor results in get_deposits().