``$ch`` is undefined