fix warning messages