Fix checked logic