Fix ok flag