Fix typo that caused valuations to be lost (fixes consistency check problem in #50).