Fixed Broken scripts bug