Issue #5983: fixed bug that loader error