#291: fixed creating new repositories