Fix empty tuple bug