fix correct output status for ptg