fixed a bug re: list length