Fix accessing invalid repo path (2/2)