Fix crash when launching inspector