fix initial plugin state