fix #663