Fix error which happens when switching channels through ember