fixed initializer and Wformat warnings