fix check err