fix compile error from cherry-picked commit dee5b3fc2785
(cherry picked from commit d48150e5a0831577819730ea17ba9c75bd0c019c)