Repository bug fix