Fixed bug in tkinter window