Snappy despeckle integer error

Hi,
I am using snappy to process S1 images. despeckle operation raise an error “org.esa.snap.core.gpf.OperatorException: Operator ‘SpeckleFilterOp’: Value for ‘Size Y’ must be of type ‘int’”
My code :

    parameters = HashMap()
    parameters.put('filter', 'Lee')
    parameters.put('filterSizeX', 5)
    parameters.put('filterSizeY', 5)
    product = GPF.createProduct('Speckle-Filter', parameters, product)

I tried with int(‘5’), same result.

Does someone had the same error?
SNAP 8.0 Python 3.10
Thanks