fix tuple error