*facepalm* Fixed variable scope