Fix dehydration/rehydration in simple example