Resize Image latest Photoshop

Hi, I used for years this syntax in old PS CC 2014, 2015 and previous.
Now with latest PS seems that something is changed and don’t works anymore. Any suggestion?

tell application “Adobe Photoshop 2023”
tell current document
resize image width 600 as pixels height 400 as pixels resample method bicubic sharper
end tell
end tell

OK seems that adding this extra line all works:

tell application “Adobe Photoshop 2023”
set ruler units of settings to pixel units
tell current document
resize image width 600 height 400 resample method bicubic sharper
end tell
end tell