Fixed crash when plug-in starts.