Fix warnings

fixed some warnings I found so far