fix gitignore and code  fault