A note on the stability of pure-injective modules