--- coolmetal-logo-rev-25472.scm	2008-08-23 17:09:56.125000000 +0300
+++ coolmetal-logo-fix.scm	2008-08-23 17:13:42.812500000 +0300
@@ -118,6 +118,14 @@
                                          gradient-reverse)
   (begin
     (gimp-image-undo-group-start img)
+
+    (if (car(gimp-layer-is-floating-sel logo-layer))
+        (begin
+               (gimp-floating-sel-to-layer logo-layer)
+               (set! logo-layer (car(gimp-image-get-active-layer img)))
+        )
+     )
+
     (apply-cool-metal-logo-effect img logo-layer size bg-color
                                   gradient gradient-reverse)
     (gimp-image-undo-group-end img)
