Prevent crash under certain pathological results.