fixed bug when only one entry in an slist