Fixed bug while sinthetizing channels