think you missed the second comment: you need to do the MIN thing on self.lastSelectedIndexPath.section here too

maybe move it out into a local?