fixing references to resources