fit the bug that no tracehead cause error