diff --git a/lib/podio/middleware/date_conversion.rb b/lib/podio/middleware/date_conversion.rb
index <HASH>..<HASH> 100644
--- a/lib/podio/middleware/date_conversion.rb
+++ b/lib/podio/middleware/date_conversion.rb
@@ -9,7 +9,7 @@ module Podio
       
       # Converts all attributes ending with "_on" to datetime and ending with "date" to date
       def self.convert_dates(body)
-        [body].flatten.each do |hash|
+        [body].flatten.compact.each do |hash|
           hash.each do |key, value|
             if value.is_a?(Hash)
               self.convert_dates(value)
Fixed a bug in the date conversion middleware