Fixes to repo creation