Fix issue with expanded state on startup.