Fix the crash when using storyboard.