Revert "fix #4819"

This reverts commit 44dc7daa13ac81a2b3ec7f60b01136a2aa93a5ab.