S2 computation works only in some cases