fix functional tests fail