Fix code inspection warnings