fixed pwi saving