Fixed heading bug with list

Fixed heading bug with list