fix #338