fix functional test error