* Fixed some errors in address and channel allocation due to casting between pointers on 8-bit int and 16-bit int.