Fixed compilation warnings