fix crash when git is not Integer.