fix pgarray stuff