fix a few warnings