fix tuple decode bug