fix tuple TypeError