Fixed cross platform tp_base issue.