fixed compilation char conversion error