fix the notice errors