Fix some bugs with PTC.