Fixed checking error