restore should look at previous revision for correct value

Change-Id: I03527154ed6e9b82dca05c60bf93d38c62f53582