original_hash was incorrectly overwritten on reference update.