Fix warnings

All warnings are fixed now