fixed check bug