Fix scroll with newline issue