removes extra li tag