Update hash in vertex