fix #1305