fix count of ptg/ptd