Fixed a nullref