diff --git a/lib/active_model_serializers_binary/active_model_serializers_binary.rb b/lib/active_model_serializers_binary/active_model_serializers_binary.rb
index <HASH>..<HASH> 100644
--- a/lib/active_model_serializers_binary/active_model_serializers_binary.rb
+++ b/lib/active_model_serializers_binary/active_model_serializers_binary.rb
@@ -49,7 +49,7 @@ module ActiveModel
             true
           else
             attr_name = attr[:name].to_s
-            if !instance.respond_to? attr_name
+            if !instance.class.column_names.include? attr_name
               attr[:virtual] = true
               attr_accessor attr_name
               true
diff --git a/lib/active_model_serializers_binary/version.rb b/lib/active_model_serializers_binary/version.rb
index <HASH>..<HASH> 100644
--- a/lib/active_model_serializers_binary/version.rb
+++ b/lib/active_model_serializers_binary/version.rb
@@ -1,3 +1,3 @@
 module ActiveModelSerializersBinary
-  VERSION = "0.2.7"
+  VERSION = "0.2.8"
 end
when a previous query filter attributes, the attr of the model was overwrited. Fix Bug