fixed Repository init
Automatically rewritten for npm.