Fixed closing last span

Now closes last span tag it started.