Fix $char not defind