diff --git a/cps/templates/book_edit.html b/cps/templates/book_edit.html
index a24f74b5..6651ce22 100644
--- a/cps/templates/book_edit.html
+++ b/cps/templates/book_edit.html
@@ -70,7 +70,7 @@
{% endif %}
{% if c.datatype == 'int' %}
-
+
{% endif %}
{% if c.datatype in ['text', 'series'] and not c.is_multiple %}
diff --git a/cps/web.py b/cps/web.py
index e13ecca0..6f5dd8f9 100755
--- a/cps/web.py
+++ b/cps/web.py
@@ -1313,7 +1313,7 @@ def delete_book(book_id):
cc_string = "custom_column_" + str(c.id)
if not c.is_multiple:
if len(getattr(book, cc_string)) > 0:
- if c.datatype == 'bool':
+ if c.datatype == 'bool' or c.datatype == 'integer':
del_cc = getattr(book, cc_string)[0]
getattr(book, cc_string).remove(del_cc)
db.session.delete(del_cc)