Fixed compiler warns