fixed glitches

fixed glitches