fix count
fix unicode error
fix scan