set correct userid when writing nodes