Delete empty line at end of index