Correcting s function