Fixed warnings in Visual Studio