Fix issue #22 - channels_getprev() returns wrong channel.  Thanks to eindano.