fix #671