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

Fixed the script error raising when saving edit step window. please check it.