fixed a latent bug in ll.c