fix scan char