6th batch of bug fixed, add initPvar