find some strerr error and fixed it