Fixing the check for tools