Fixed nextline problems