Fixed crash when setting view controllers the first time.