derp - was accessing null var