Issue #5983: fixed bug that draw none