Fix bad access crash from NSNotificationCenter