slist: fix "stack not empty" errors