fix unnecessary error messages