fix call to link resource