Prevent log div overflow