[cleanup] Fixed a few warnings