fixed a couple of compile time warnings