fix pg relFirst