Fixed bad dict => tuple conversion.