fixed a bug closing list tags