fix tuple bugs.