Click the flag - like always. If you want to see what I fixed, look inside the original project.
I couldn't help fixing the code. I guess I made a few tweaks besides the glitch...