fix check bug