fix .gitignore
fix segmentation fault