fix unfold script