fix #246