fixed a couple of compiler warnings