Removing reference to deleted script