Fixing #2018265: premature complete detection.