Fix dendrite script