Script_release fix a out_of_range error