Fixed warnings shown in VS.