Fixed crash when switching addons and opening files after