fix panic when comparing list to non-list