fixing repository/branches problems