Fix python 2.6 restoration/unwrap error