fix some code inspection problems