fix badcase of tuple