chan: Initialize flag to 0