Fix $char not defined