fix generate sample config