Fix to allow for api change