fix #340