Fixed the null pointer exception in the summaryViewController