fix bugs on resource link