Fix bug with restrict abuse detection.