Changed font and fixed a text related bug

(not updating the window number when necessary)