fix #5798