Fix the problem that function object cannot be used in live runner

This test case fails.