tuple bug fix