fix #2979