fix logic error that prevented plugni from running