Yep because it's not there until rendered. I've avoided update this to only set it here but define the var above.