removed the print statement for window name, no idea what caused the problem :x