Cropping Stack without duplicating first

I am trying to crop a stack of images as rapidly as possible via macro.
I open the stack, select rectangle and then use run(“Crop”).

However, bizarrely this keeps the image of only one slice of the stack and replicates it for across all slices.

I can duplicate the stack first and then crop. However, as im using this cropping in an automated microscopy pipeline, I cant afford the delay that duplicating the stack costs.

Can I crop a stack without duplicating first?

Thank you,
DL

Please provide a minimal macro the reproduces this problem. The following macro, which opens the “T1 Head” sample stack and crops it, works as expected.

  run("T1 Head (2.4M, 16-bits)");
  makeRectangle(45, 56, 163, 180);
  run("Crop");