Fixed so that the gid number is not overwritten
Fixed so that the gid number is not overwritten