fix console error messges