char error fix