Fix warnings

The compiler is complained about some minor things, i fixed it.