fixed gcc's warnings