fixed a bug removing numbers when resizing the window