Fix issue with list cons pattern