fix bug which deleted wrong lines and put items before section headers...