fix warning issues