Fix console print issue and no initPT issue.