fixed bug in tuple assignment