fixed typo in error message of inspector