fix undefined unwrap var