Fixed list() command bug