Fix bug with empty lines