fix list()'s bug