fix errors in repo creation