fix empty lines crash