Fix notice detection.