fix #341