Fixes #563, be sure map is applied to resource IDs for plugins.