timed script link generation bug fix