fix relative linking of resources