Fix crash when launching inspector
Merge pull request #392 from penguinho/master

Fix crash when launching inspector