fix flawed logic for updating competitions before they end