fix #322