fix #497