issue #5695: fix bugs of facebook testcase