fixed bug that made scripts appear duplicated