Fix ns-free null deref