[NGRINDER-722] Fix the bugs when commiting new file