Fixed broken reference null pointer