Fixed bug in SavePhText