Modify gitignore and fix like state.