Fixed startup crash.