Fix a bug of S definition.