Plugin works only when in config