Fixed linking for plugins