fix buggy S1 main