Bug with log button when resizing the window fixed