Fix RDF so works on all versions of API.