fixed minor check error