diff --git a/lib/sfn/command/destroy.rb b/lib/sfn/command/destroy.rb
index <HASH>..<HASH> 100644
--- a/lib/sfn/command/destroy.rb
+++ b/lib/sfn/command/destroy.rb
@@ -53,7 +53,7 @@ module Sfn
           nested_stack_cleanup!(n_stack)
         end
         nest_stacks = stack.template.fetch('Resources', {}).values.find_all do |resource|
-          resource['Type'] == stack.api.const_get(:RESOURCE_MAPPING).key(stack.class).to_s
+          resource['Type'] == stack.api.class.const_get(:RESOURCE_MAPPING).key(stack.class).to_s
         end.each do |resource|
           url = resource['Properties']['TemplateURL']
           if(url)
Fix constant fetching for stack type comparison