fix #3979