fix a bug in git source running not the first time now works