Issue #8177 by tuj: Fixed bug.