Fix stupid bug, hooks is in repo object