fix the notice issue