* fix the bug in some test cases