fixes #3782 Script error raising When I try to save edit step widnow