Fixed another bug when plugin is first used