fixed broken script