fixed bug introduced by unlist