Fix accessing resources of static plugins.