scipy-stack: Fixed a variable not being set correctly.