fixed script problem