Use different functions to get billing and shipping addresses instead buggy function which returns list of addresses