Fix bug in the tuple parser