fixing a checking error