fixed weird case glitch