fix #942