fix #6784