fix generate example config function