bugs fixing

fixed check all function