Fix tuple assignment bug