fix problem with plugin in pinned mode