fix for channel API for java