fixed glitch in S