fix bug into script