Fixed startup errors.