fix bugs with rdfs:isdefinedby and script differences