Fixed nullref.