Fixed extra queries in contest