fixed some inspection warnings