Fix lastOpen.