Update CHAN.rb

Fixing problems