fix pg error with status in POs