Bug fix for renameNode where in certain cases _g_updateLocation was wrongly called