fixed small bug with channels.js