Fixed a stack overflow in SGList ... oops.