fixed warning issues on compilation