Fixed warnings for pit code