fixed the problem that blocks a test, which was enbuged in commit f115bf46.