Autofocus stops working when rotation parameter is used

Problems:
When I use the ’ --rotation 180 ’ parameter, the focus stops working
libcamera-still --autofocus-mode auto --rotation 180 -o test_1.jpg
makes blurry picture

    libcamera-still --autofocus-mode auto --rotation 0 -o test_2.jpg
    libcamera-still --autofocus-mode auto -o test_2.jpg
    libcamera-still --autofocus-mode auto -o test_2.jpg
    works OK
    It is the same result with libcamera-jpeg  

Where did you get the camera module(s)? Arducam.com
Model number of the product(s). Arducam 16MP IMX519 Motorized Focus Camera
B0371
What hardware/platform were you working on?
Raspberry Pi 3 Model B Plus Rev 1.3
Hardware Revision: a020d3
Kernel Version: 6.6.16-v7+
OS Codename: bullseye
ARCH: armv7l

Instructions you have followed. (link/manual/etc.)
     https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Quick-Start-Guide/

    
    --version
    libcamera-apps build: 6437a8e7ddbc-intree-dirty 19-07-2023 (10:00:45)
    libcamera build: v0.0.0+4367-ad9428b4

The problem also occurs when using the --vflip parameter.:
libcamera-still -t 5000 -o test3.jpg --vflip produces out of focus picture, and no changes in the lens position in the output before capture

libcamera-still -t 5000 -o test3.jpg produces in focus picture and shows the lens position changing before capture