fix issue with opening wrong repository