Avoid RuntimeWarning.