fix #4449 warnings