fixed glitch & log