Fixing an issue whereby the summary card would always be generated