fix gcc warns