fix crash when poping from detail screen to main, and tableview is updating.