fix the parent wrapper when there are 'li' elements