fix crash in plugin installer