Fixed the query by attributes i.e the list option.