Trying to fix traceback on startup.