Fixed chan type in main