Issue #5983: Fixed a bug that layout error