file reference fix for resources