Finally fixed all glitches of the program!