fix misc bug with tuple