Bug fix in inspect