fix #347