diff --git a/includes/ckeditor.features.inc b/includes/ckeditor.features.inc
index c68c5a9..1690f15 100644
--- a/includes/ckeditor.features.inc
+++ b/includes/ckeditor.features.inc
@@ -103,16 +103,10 @@ function ckeditor_profile_features_revert($module) {
 
       // Restore the profile roles
       foreach ($profile["input_formats"] as $input_format => $input_format_name) {
-        if (isset($input_formats[$input_format])) {
-          if (!db_query("SELECT name FROM {ckeditor_input_format} WHERE format = :format AND name = :name", array(':name' => $name, ':format' => $input_format))->fetchField()) {
-            db_query("INSERT INTO {ckeditor_input_format} (name, format) VALUES(:name, :format)", array(':name' => $name, ':format' => $input_format));
-          }
-        }
-        else {
-          // Make sure they don't have access
-          db_query("DELETE FROM {ckeditor_input_format} WHERE format = :format AND name = :name", array(':name' => $name, ':format' => $input_format));
+        if (!db_query("SELECT name FROM {ckeditor_input_format} WHERE format = :format AND name = :name", array(':name' => $name, ':format' => $input_format))->fetchField()) {
+          db_query("INSERT INTO {ckeditor_input_format} (name, format) VALUES(:name, :format)", array(':name' => $name, ':format' => $input_format));
         }
       }
     }
   }
-}
\ No newline at end of file
+}
