fixed Repository init