fix #3221