fix references to resources