Fixed 3 warnings

Fixed 3 warnings when compiling with -Weverything
There are 7 remaining though