try to fix the bug, but still dont know the reason