fixed tuple/list cmp bug