Fixed bad definition of S'