Fix various inspection warnings