Fix singlethread plugins