fixed _unwrap function for value=0