fixed some bugs with repo permissions