Fix notice on gradient field