fixes dangling li close tag