Crashes fixes for callbacks for index viewer node and code