Remove of CheckForEmptyFirstLine endless loop