fix logic with all unchecked