fix #396