bug fix myscript