Fix to resource parameter not working properly for linked files.