fixed undefined var in repo checkout