Fixed init crashes.