Fix startup errors.