fix #337