Fixing variable typo nullref

Fixing variable typo nullref