fix s bug