Fix issue with object initialization order causing the application to
crash on startup.