fix #1394