fixed a bug in the list option