fixed a tuple/list bug