fixed notice errors