Fixed big bug caused by handling empty repository name