Corrects bug in plugin generation