diff --git a/app/pdb/layer-cmds.c b/app/pdb/layer-cmds.c
index 1d64b69..718075f 100644
--- a/app/pdb/layer-cmds.c
+++ b/app/pdb/layer-cmds.c
@@ -114,6 +114,7 @@ layer_new_from_visible_invoker (GimpProcedure      *procedure,
     {
       GimpProjection *projection = gimp_image_get_projection (image);
 
+      gimp_projection_flush_now (projection);
       layer = gimp_layer_new_from_tiles (gimp_projection_get_tiles (projection),
                                          dest_image,
                                          gimp_image_base_type_with_alpha (dest_image),
