Fixed a bug relative to stationary points