Fixed wrong reference to repo object