Fix the use of an uninitalized variable

Also is analysis but hey Z everywhere!