Bugfix - num_chans indexing error

Signed-off-by: Danny Price <dan@thetelegraphic.com>