fix for crashing plugins