Stability change of an epidemic model