diff --git a/scp/teams.php b/scp/teams.php
index 791181487cd471b8687b39b4a704a4bdd2e60630..670ef7cce5d33105d5d4a7cb2c0bc978f1489961 100644
--- a/scp/teams.php
+++ b/scp/teams.php
@@ -52,7 +52,10 @@ if($_POST){
                         $num = Team::objects()->filter(array(
                             'team_id__in' => $_POST['ids']
                         ))->update(array(
-                            'isenabled' => 1
+                            'flags' => SqlExpression::bitor(
+                                new SqlField('flags'),
+                                Team::FLAG_ENABLED
+                            )
                         ));
 
                         if ($num) {
@@ -71,7 +74,10 @@ if($_POST){
                         $num = Team::objects()->filter(array(
                             'team_id__in' => $_POST['ids']
                         ))->update(array(
-                            'isenabled' => 0
+                            'flags' => SqlExpression::bitand(
+                                new SqlField('flags'),
+                                ~Team::FLAG_ENABLED
+                            )
                         ));
 
                         if ($num) {