Fixed a possible glitch