fix the notice bug