fix allocateRAWChannel (we must first give free the cached channel)