Fixed removing empty lines. Fixed removing IDs.