fix a warning while initializing a struct