Fix for static destruction order issue.