Fixed many old warnings