Fix bug where channels could be duplicated due to different case