Small bug fix at isGlitched