scripts bug