Dealing with warnings. Small code clean