Fixed Tkinter bug