diff --git a/modules/Bio/EnsEMBL/DBSQL/AttributeAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/AttributeAdaptor.pm
index c681c552656e05e2034063a37ec1fa6ae45685ad..6240ab9ee697e74a09876e65b6fdfecee07af8f8 100644
--- a/modules/Bio/EnsEMBL/DBSQL/AttributeAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/AttributeAdaptor.pm
@@ -165,7 +165,7 @@ sub store_on_ {
             "argument expected.");
     }
 
-    next if ($attrib->value == 0);
+    next if ($attrib->value eq '0');
 
     my $atid = $self->_store_type( $attrib );
     if ((defined $attrib->code) and ($attrib->code eq 'circular_seq')) {