Fix for latest rest adapter.