fix #349