fix some repo bugs