fixing a potential tuple bug