Use let in prelude.l instead of do+set.