fix #946