Fix notice errors