Fix overlayplugin bug