fix init errors