Barça clings to the ledge