fixed bug in ehc_slim (saved outstack lengths)