fix #2899, regression