Fixed the orientation of hpre vector