Fix issue with not releasing channel allocation correctly