Transformations preserving weak stability