fixes broken script