fix notices issue