Focus Modal Does Not Close On Form Submit

Your software
My Mautic version is: 4.0.1
My PHP version is: 7.2.23
My Database type and version is: 10.3.30-MariaDB-1:10.3.30+maria~bionic

Your problem
My problem is:
Focus modal does not close on form submission, it displays the thank you message and then reloads the form

These errors are showing in the log:
[2021-10-01 11:40:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/ - at line 719 {“args”:,“orderedValues”:,“keywordValues”:,“assignedValues”:,“i”:0,“last”:false}

Steps I have tried to fix the problem:
Removing javascript from combine

i have some problem (