Fixed pasting of empty lines