fixed a few compiler warnings