fixing some repo bugs