fixed bug for empty repo